package com.rayenterprise.kms.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import net.sf.gilead.pojo.java5.LightEntity;

public class KInfo extends LightEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int infoId;
	private KNotion notion;
	private KGenre genre;
	private String text;
	private String tags;
	private Set<Date> updateCalendar;
	private Date addDate;
	private boolean isFinished;

	public int getInfoId() {
		return infoId;
	}

	public void setInfoId(int infoId) {
		this.infoId = infoId;
	}

	public KNotion getNotion() {
		return notion;
	}

	public void setNotion(KNotion notion) {
		this.notion = notion;
	}

	public KGenre getGenre() {
		return genre;
	}

	public void setGenre(KGenre genre) {
		this.genre = genre;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public Set<Date> getUpdateCalendar() {
		return updateCalendar;
	}

	public void setUpdateCalendar(Set<Date> updateCalendar) {
		this.updateCalendar = updateCalendar;
	}

	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

	public boolean getIsFinished() {
		return isFinished;
	}

	public void setIsFinished(boolean isFinished) {
		this.isFinished = isFinished;
	}

	public void addUpdateCalendar(Date updateRegister) {
		if (this.updateCalendar == null)
			updateCalendar = new HashSet<Date>();
		updateCalendar.add(updateRegister);

	}

}
